package jiuqi.service;

import com.github.pagehelper.PageInfo;
import jiuqi.pojo.User;
import jiuqi.pojo.query.UserQuery;

import java.util.List;

public interface UserService {
    //查询所有信息
    public List<User> listUser();

    //根据用户名查询并分页显示
    public PageInfo<User> listUserByName(UserQuery userQuery);

    // 根据id删除
    public boolean deleteUserById(Integer id);

    //根据id查询用户
    public User queryUserById(Integer id);

    //修改用户
    public boolean updateUser(User user);

    //通过姓名精准查询
    public PageInfo<User> listUserByNameOne(UserQuery userQuery);

    //新增
    public boolean addUser(User user);
}
